package javajichu.shuozhu.Zuoyei;

public class Zy2 {
    public static void main(String[] args) {
        int[] a = new int[31];
        int k;
        a[0] = 1;
        System.out.println("a[0=1]");
        for (k = 1; k < a.length; k++) {
            a[k] = 2 * a[k - 1];
            System.out.println("a[" + k + "]=" + a[k]);

        }

    }
}
